package com.niit.game;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestConfiguration {

    public static void main(String[] args) {
        ApplicationContext ctx =
                new AnnotationConfigApplicationContext(MyConfig.class);

       Game game=  ctx.getBean(Game.class);
       game.game();
    }
}
